//
//  DemoController.swift
//  DemoUI
//
//  Created by 白瑾浩 on 2022/2/22.
//

import UIKit

class DemoController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .white
        self.title = "UI测试demo集合"
        let button1 = UIButton(type: UIButton.ButtonType.system)
        button1.frame = CGRect(x: 10, y: 100, width: 100, height: 20)
        button1.setTitle("UITextView", for: UIControl.State.normal)
        button1.addTarget(self, action: #selector(clickButton1), for: .touchUpInside)
        self.view.addSubview( button1 )
        
    }
    @objc func clickButton1(){
        self.navigationController?.pushViewController(UITextViewController(), animated: true)
    }

}
